MoreExam
1. Question Content...
EXPLANATION
Answer: X - EXPLANATION Content.
Question1: Exhibit:ContextYou are tasked to create a secret and consume the secret in a pod using environment variables as follow:Task* Create a secret named another-secret with a key/value pair; key1/value4* Start an nginx pod named nginx-secret using container image nginx, and add an environment variable exposing the value of the secret key key 1, using COOL_VARIABLE as the name for the environment variable inside the pod
Question2: Exhibit:ContextA web application requires a specific version of redis to be used as a cache.TaskCreate a pod with the following characteristics, and leave it running when complete:* The pod must run in the web namespace.The namespace has already been created* The name of the pod should be cache* Use the Ifccncf/redis image with the 3.2 tag* Expose port 6379
Question3: Exhibit:ContextA project that you are working on has a requirement for persistent data to be available.TaskTo facilitate this, perform the following tasks:* Create a file on node sk8s-node-0 at /opt/KDSP00101/data/index.html with the content Acct=Finance* Create a PersistentVolume named task-pv-volume using hostPath and allocate 1Gi to it, specifying that the volume is at /opt/KDSP00101/data on the cluster's node. The configuration should specify the access mode of ReadWriteOnce . It should define the StorageClass name exam for the PersistentVolume , which will be used to bind PersistentVolumeClaim requests to this PersistenetVolume.* Create a PefsissentVolumeClaim named task-pv-claim that requests a volume of at least 100Mi and specifies an access mode of ReadWriteOnce* Create a pod that uses the PersistentVolmeClaim as a volume with a label app: my-storage-app mounting the resulting volume to a mountPath /usr/share/nginx/html inside the pod
Question4: Exhibit:TaskYou have rolled out a new pod to your infrastructure and now you need to allow it to communicate with the web and storage pods but nothing else. Given the running pod kdsn00201 -newpod edit it to use a network policy that will allow it to send and receive traffic only to and from the web and storage pods.
Question5: Exhibit:ContextYour application's namespace requires a specific service account to be used.TaskUpdate the app-a deployment in the production namespace to run as the restrictedservice service account. The service account has already been created.
Question6: ContextAnytime a team needs to run a container on Kubernetes they will need to define a pod within which to run the container.TaskPlease complete the following:* Create a YAML formatted pod manifest/opt/KDPD00101/podl.yml to create a pod named app1 that runs a container named app1cont using image Ifccncf/arg-outputwith these command line arguments: -lines 56 -F* Create the pod with the kubect1 command using the YAML file created in the previous step* When the pod is running display summary data about the pod in JSON format using the kubect1 command and redirect the output to a file named /opt/KDPD00101/out1.json* All of the files you need to work with have been created, empty, for your convenience
Question7: Exhibit:ContextYou sometimes need to observe a pod's logs, and write those logs to a file for further analysis.TaskPlease complete the following;* Deploy the counter pod to the cluster using the provided YAMLspec file at /opt/KDOB00201/counter.yaml* Retrieve all currently available application logs from the running pod and store them in the file /opt/KDOB0020l/log_Output.txt, which has already been created